import 'dart:ui';

import 'package:app_admin/res/lang/en_US.dart';
import 'package:app_admin/res/lang/zh_CN.dart';
import 'package:get/get.dart';

class TranslationService extends Translations {
  static Locale? get locale => Get.deviceLocale;
  static const fallbackLocale = Locale('zh', 'CN');

  @override
  Map<String, Map<String, String>> get keys => {
        'en_US': en_US,
        'zh_CN': zh_CN,
      };
}

class StrRes {
  StrRes._();

  static String get welcome => 'welcome'.tr;

  static String get phoneNumber => 'phoneNumber'.tr;
  static String get sendVerificationCode => 'sendVerificationCode'.tr;
  static String get plsEnterPhoneNumber => 'plsEnterPhoneNumber'.tr;
  static String get password => 'password'.tr;
  static String get plsEnterPassword => 'plsEnterPassword'.tr;
  static String get login => 'login'.tr;
  static String get noAccountYet => 'noAccountYet'.tr;
  static String get registerNow => 'registerNow'.tr;

  static String get audioAndVideoCall => 'audioAndVideoCall'.tr;
  static String get sendMessage => 'sendMessage'.tr;

  static String get cancel => 'cancel'.tr;

  static String get callVoice => 'callVoice'.tr;
  static String get callVideo => 'callVideo'.tr;

  static String get toolboxAlbum => 'toolboxAlbum'.tr;
  static String get toolboxCamera => 'toolboxCamera'.tr;

  static String get reEdit => 'reEdit'.tr;

  static String get download => 'download'.tr;
  static String get search => 'search'.tr;

  static String get upgradeFind => 'upgradeFind'.tr;
  static String get upgradeVersion => 'upgradeVersion'.tr;
  static String get upgradeDescription => 'upgradeDescription'.tr;
  static String get upgradeIgnore => 'upgradeIgnore'.tr;
  static String get upgradeLater => 'upgradeLater'.tr;
  static String get upgradeNow => 'upgradeNow'.tr;

  static String get sentSuccessfully => 'sentSuccessfully'.tr;

  //=========
  static String get home => 'home'.tr;
  static String get contacts => 'contacts'.tr;
  static String get mine => 'mine'.tr;
  static String get workbench => 'workbench'.tr;

  static String get mainPageTitle => 'mainPageTitle'.tr;
  static String get orderSet => 'orderSet'.tr;
  static String get order => 'order'.tr;
  static String get orderPlan => 'orderPlan'.tr;
  static String get orderTaskManager => 'orderTaskManager'.tr;
  static String get orderReport => 'orderReport'.tr;

  //========
  static String get orderCode => 'orderCode'.tr;
  static String get orderTime => 'orderTime'.tr;
  static String get orderPlayerName => 'orderPlayerName'.tr;
  static String get orderGoods => 'orderGoods'.tr;
  static String get orderLevel => 'orderLevel'.tr;
  static String get orderNum => 'orderNum'.tr;

  static String get determine => 'determine'.tr;
}
